<script setup lang="ts">
import { useRoute } from 'vue-router'
const route = useRoute()

// 发送消息到外层页面
window.parent.postMessage(
  {
    type: 'piniaUpdate',
    payload: {
      name: route.query.name as string,
      token: route.query.token as string,
    },
  },
  '*',
)
</script>

<template>
  <img class="login_successfully" src="@/assets/Svg/login_successfully.svg" alt="" />
</template>

<style lang="scss" scoped>
.login_successfully {
  position: absolute;
  width: 100vw;
  height: 100vh;
  left: 0;
  top: 0;
  z-index: 9999;
  background-color: #fff;
}
</style>
